<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_helper('jQuery')?>

<script type="text/javascript">
    $(function() {        
        $("a.back").button({
            icons: {
                primary: "ui-icon-circle-arrow-w"
            }
        });
        $("input:submit").button({
            icons: {
                primary: "ui-icon-disk"
            }
        });
    });
</script>


<?php echo form_tag_for($form, '@category') ?>
    <table>
        <tfoot>
            <tr>
                <td>
                    &nbsp;<input type="submit" value="Guardar" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;<a class="back" href="<?php echo url_for('category') ?>">Regresar</a>
                <!--<?php if (!$form->getObject()->isNew()): ?>
                    &nbsp;
                    <?php echo link_to('Delete', 'category_delete', $form->getObject(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
                <?php endif; ?>-->
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php echo $form ?>
        </tbody>
    </table>
</form>
